package il.ac.braude.sona.entities;

import il.ac.braude.sona.gui.list_table.FieldInfo;

import java.io.Serializable;



/**
 * Entity for saving the Worker information to view
 * @author Ofek Ron
 * @author Avihay Avitan
 * @author Nitzan Inbar
 * @author Sasha Rozenthal
 */
public class Worker implements Serializable {
	/**
	 * The worker Full Name
	 */
	@FieldInfo(name="Full Name", isVisibleOnTable = true)
	private String FullName;
	/**
	 * The worker Role
	 */
	@FieldInfo(name="Role", isVisibleOnTable = true)
	private String Role;
	/**
	 * The worker Email
	 */
	@FieldInfo(name="Email", isVisibleOnTable = true)
	private String Email;
	
	
	/**
	 * Constructor for Worker information
	 * @param fname - Worker's first name
	 * @param lname - Worker's last name
	 * @param role - Worker's role
	 * @param email  - Worker's email
	 */
	public Worker(String fname, String lname, String role, String email) {
		this.FullName = fname+" "+lname;
		this.Role = role;
		this.Email = email;
	}
	/**
	 * @return the the Email
	 */
	public String getEnail() {
		return Email;
	}
	/**
	 * sets Email
	 * @param email - the Email to be set
	 */
	public void setEnail(String email) {
		Email = email;
	}
	/**
	 * @return the the Role
	 */
	public String getRole() {
		return Role;
	}
	/**
	 * sets Role
	 * @param role - the role to be set
	 */
	public void setRole(String role) {
		Role = role;
	}
	/**
	 * @return the the FullName
	 */
	public String getFullName() {
		return FullName;
	}
	/**
	 * sets FullName
	 * @param fullName - the fullName to be set
	 */
	public void setFullName(String fullName) {
		FullName = fullName;
	}

}
